#ifndef PLAYERSELECTDLG_H
#define PLAYERSELECTDLG_H

#include <QDialog>

namespace Ui {
    class PlayerSelectDlg;
}

class PlayerSelectDlg : public QDialog
{
  Q_OBJECT

  public:
   static QString getFirstPlayer(QWidget *parent, const QString& p1, const QString& p2);

  public slots:
    void onPlayerSelected();

  protected:
    void closeEvent(QCloseEvent *e);
    void setPlayers(const QString& player1, const QString& player2);

  private:
    explicit PlayerSelectDlg(QWidget *parent = 0);
    ~PlayerSelectDlg();
    Ui::PlayerSelectDlg *ui;
    QString mSelectedPlayer;
};

#endif // PLAYERSELECTDLG_H
